.class Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;
.super Landroid/content/BroadcastReceiver;
.source "FileExplorerActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/view/FileExplorerActivity;->j1()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field a:Z

.field final synthetic b:Lcom/estrongs/android/pop/view/FileExplorerActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/view/FileExplorerActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a:Z

    return-void
.end method

.method private a()V
    .locals 1

    .line 2
    invoke-static {}, Lcom/estrongs/android/ui/guesture/b;->d()V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iget-object v0, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;->p0:Lcom/estrongs/android/ui/guesture/ESGesturePanel;

    invoke-virtual {v0}, Landroid/view/View;->postInvalidate()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 5

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iget-object v0, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;->D:Ljava/util/List;

    monitor-enter v0

    .line 5
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->D:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/view/FileGridViewWrapper;

    if-eqz v2, :cond_0

    .line 6
    invoke-virtual {v2}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 7
    invoke-virtual {v3, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 8
    iget-object v3, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v3

    const/4 v4, 0x1

    if-ne v2, v3, :cond_1

    const/4 v3, 0x0

    .line 9
    invoke-virtual {v2, v3}, Lcom/estrongs/android/view/FileGridViewWrapper;->a(Lcom/estrongs/android/view/FileGridViewWrapper$z;)V

    .line 10
    invoke-virtual {v2, v4}, Lcom/estrongs/android/view/FileGridViewWrapper;->d(Z)V

    .line 11
    iget-object v3, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iget-object v3, v3, Lcom/estrongs/android/pop/view/FileExplorerActivity;->z0:Lcom/estrongs/android/view/FileGridViewWrapper$z;

    invoke-virtual {v2, v3}, Lcom/estrongs/android/view/FileGridViewWrapper;->a(Lcom/estrongs/android/view/FileGridViewWrapper$z;)V

    .line 12
    iget-object v3, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    iget-object v3, v3, Lcom/estrongs/android/pop/view/FileExplorerActivity;->z0:Lcom/estrongs/android/view/FileGridViewWrapper$z;

    invoke-virtual {v2}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v3, v2, v4}, Lcom/estrongs/android/view/FileGridViewWrapper$z;->a(Ljava/lang/String;Z)V

    goto :goto_0

    .line 13
    :cond_1
    invoke-virtual {v2, v4}, Lcom/estrongs/android/view/FileGridViewWrapper;->g(Z)V

    goto :goto_0

    .line 14
    :cond_2
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method private b(Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a:Z

    .line 3
    :try_start_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 4
    :catch_0
    new-instance v0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1$b;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1$b;-><init>(Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;Ljava/lang/String;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o;->a(Ljava/lang/Runnable;)V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 4

    .line 1
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    .line 2
    :try_start_0
    invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p2

    invoke-virtual {p2}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object p2

    const-string v0, "android.intent.action.MEDIA_MOUNTED"

    .line 3
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/16 v1, 0x15

    const/4 v2, 0x1

    if-eqz v0, :cond_3

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {p1, v2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->d(Lcom/estrongs/android/pop/view/FileExplorerActivity;Z)Z

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/a;->b()V

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/b;->a()V

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/utils/n;->h()V

    .line 8
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object p1

    invoke-virtual {p1}, Les/p10;->b()V

    .line 9
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object p1

    .line 10
    invoke-static {p2, p1}, Lcom/estrongs/android/util/h0;->i(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 11
    invoke-direct {p0, p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b(Ljava/lang/String;)V

    goto :goto_0

    .line 12
    :cond_0
    invoke-direct {p0, p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a(Ljava/lang/String;)V

    .line 13
    :goto_0
    invoke-static {}, Lcom/estrongs/android/view/FileGridViewWrapper;->F0()V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->y(Lcom/estrongs/android/pop/view/FileExplorerActivity;)Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 15
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 16
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->y(Lcom/estrongs/android/pop/view/FileExplorerActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/cy$f;

    .line 18
    invoke-interface {v3, p1, v2}, Les/cy$f;->a(Ljava/util/ArrayList;Z)V

    goto :goto_1

    .line 19
    :cond_1
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt p1, v1, :cond_2

    .line 20
    invoke-static {}, Lcom/estrongs/fs/impl/local/a;->b()V

    .line 21
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->c0()Lcom/estrongs/android/pop/app/leftnavigation/h0;

    move-result-object p1

    if-eqz p1, :cond_8

    .line 22
    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/leftnavigation/h0;->a(Ljava/lang/String;)V

    goto/16 :goto_3

    :cond_3
    const-string v0, "android.intent.action.MEDIA_REMOVED"

    .line 23
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    const-string v0, "android.intent.action.MEDIA_UNMOUNTED"

    .line 24
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    const-string v0, "android.intent.action.MEDIA_BAD_REMOVAL"

    .line 25
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_8

    .line 26
    :cond_4
    invoke-static {}, Lcom/estrongs/android/pop/a;->b()V

    .line 27
    invoke-static {}, Lcom/estrongs/android/pop/b;->a()V

    .line 28
    invoke-static {}, Lcom/estrongs/android/pop/utils/n;->h()V

    .line 29
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object p1

    invoke-virtual {p1}, Les/p10;->b()V

    .line 30
    sput-boolean v2, Les/yt;->i:Z

    .line 31
    invoke-direct {p0, p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->a(Ljava/lang/String;)V

    .line 32
    invoke-static {}, Lcom/estrongs/android/view/FileGridViewWrapper;->F0()V

    .line 33
    invoke-static {}, Les/rp;->a()Z

    move-result p1

    if-eqz p1, :cond_5

    .line 34
    invoke-static {}, Les/pz;->k()Les/pz;

    move-result-object p1

    invoke-virtual {p1}, Les/pz;->g()V

    .line 35
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->y(Lcom/estrongs/android/pop/view/FileExplorerActivity;)Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_6

    .line 36
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 37
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 38
    iget-object v0, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->y(Lcom/estrongs/android/pop/view/FileExplorerActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/cy$f;

    .line 39
    invoke-interface {v2, p1}, Les/cy$f;->a(Ljava/util/ArrayList;)V

    goto :goto_2

    .line 40
    :cond_6
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt p1, v1, :cond_7

    .line 41
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/l;->I(Ljava/lang/String;)V

    .line 42
    invoke-static {}, Lcom/estrongs/fs/impl/local/a;->b()V

    .line 43
    :cond_7
    iget-object p1, p0, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;->b:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->c0()Lcom/estrongs/android/pop/app/leftnavigation/h0;

    move-result-object p1

    if-eqz p1, :cond_8

    .line 44
    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/leftnavigation/h0;->b(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_3

    :catchall_0
    move-exception p1

    .line 45
    invoke-static {}, Lcom/estrongs/android/util/h0;->c()V

    .line 46
    invoke-static {}, Lcom/estrongs/android/util/h0;->b()V

    .line 47
    throw p1

    .line 48
    :catch_0
    :cond_8
    :goto_3
    invoke-static {}, Lcom/estrongs/android/util/h0;->c()V

    .line 49
    invoke-static {}, Lcom/estrongs/android/util/h0;->b()V

    .line 50
    new-instance p1, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/view/FileExplorerActivity$m1$a;-><init>(Lcom/estrongs/android/pop/view/FileExplorerActivity$m1;)V

    invoke-static {p1}, Lcom/estrongs/android/util/o;->a(Ljava/lang/Runnable;)V

    return-void
.end method
